The reverse of the PHP array in an article, "How to sort php arrays," we introduced the sort, asort, and Ksort, which are sorted in ascending order of the array, so if you want to implement the reverse of the arrays? Here's another set of functions
The reverse of the PHP array in an article, "How to sort php arrays," we introduced the sort, asort, and Ksort, which are sorted in ascending order of the array, so if you want to implement the reverse of the arrays? Here's another set of functions
In php, the sort, asort, rsort, krsort, and ksort functions are provided for simple data sorting, next I will give you a brief introduction to sort, asort, rsort, krsort, and ksort functions... in php, the sort, asort, rsort, krsort, and ksort
Sorting functions in PHP Sort, asort, Rsort, Krsort, ksort difference analysis, Asortrsort
The sort () function is used to sort the array cells from low to high.The Rsort () function is used to sort the array cells from high to low.The Asort ()
Php krsort Function
Krsort(PHP 4 and PHP 5)Krsort-the key order of the sorted array is the opposite.DescriptionBoolean krsort (array & $ array [summary $ sort_flags = SORT_REGULAR])A variety of important sequences are reversed to maintain the
The sorting functions sort, asort, rsort, krsort, and ksort in PHP are differentiated analysis, and asortrsort
The sort () function is used to sort array units from low to high.The rsort () function is used to sort array units from high to low.The
Krsort () Definition and usage
The Krsort () function reverses the array by key, preserving the original key for the set value.
The Second optional parameter contains an additional sort flag.
Returns TRUE if successful, otherwise FALSE is
The krsort () function sorts the array by key in reverse order to reserve the original key for the array value. The second optional parameter contains an additional sorting flag.
The krsort () function sorts the array by key in reverse order to
Krsort(PHP 4 and PHP 5)Krsort-the key order of the sorted array is the opposite.DescriptionBoolean krsort (array & $ array [Summary $ sort_flags = SORT_REGULAR])A variety of important sequences are reversed to maintain the relevance of key data.
With a lot of array sorting functions in PHP, let's hit about the use of PHP array sorting.The sort () function is used to sort the array cells from low to high.The Rsort () function is used to sort the array cells from high to low.The Asort ()
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.